#ifndef _H_DDS_
#define _H_DDS_
#include "define.h"

#define DAC_GPIO_PORT GPIOA
#define DAC_GPIO_PIN 4
typedef struct{
	U32 pr;
	U32 freq;
	U32 samples;
	U32 amp;
	U32 arr;
	U8 start;
	
}STRDACRegType;
extern STRDACRegType g_dac_stRegs; 
extern void dac_init(void);
extern void dac_startdds(U32 freq, U16 amp);
extern void dac_stopdds(void);
#endif